package comparator;

import org.apache.hadoop.io.Text;

/**
 * TextDemoComparator
 *
 * @author zhangyimin
 * @version 1.0
 * @date 2018-07-30 下午5:28
 */
public class TextDemoComparator extends Text.Comparator {

    @Override
    public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) {
        return  -super.compare(b1, s1, l1, b2, s2, l2);
    }
}
